import requests
import json

base_url='http://110.40.196.149:8080/out/getToken'
payload={'appId':56}
re=requests.get(base_url,params=payload).json()
#print(re)

json_headers={'Connection': 'keep-alive',
         'Content-Type': 'application/json;charset=UTF-8',
         'Accept': 'application/json, text/plain, */*',
         'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36',
         'token':re['msg']
        }

form_headers={'Connection': 'keep-alive',
         #'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryOWBgWccPMS2DkYM',
         'Accept': 'application/json, text/plain, */*',
         'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36',
         'token':re['msg']
         #'Cookie':'SSO_TOKEN='+sso_token['token']
        }